package com.cwt.service.mapper;

import com.cwt.service.base.IBaseMapper;
import com.cwt.service.domain.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Acer
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2023-07-19 11:55:16
* @Entity com.cwt.service.domain.SysRole
*/
@Mapper
public interface SysRoleMapper extends IBaseMapper<SysRole> {

    /**
     * 根据用户id 获取所有的权限码
     * @param userId 用户id
     * @return 权限码集合
     */
    List<SysRole> getUserRoles(Long userId);

}




